package org.coderk.mybatis.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-04-17 10:04
 **/
@RequestMapping("/direct")
@RestController
public class DirectController {

    @GetMapping
    public void direct(HttpServletResponse response) throws IOException {
        response.sendRedirect("http://www.baidu.com");

        System.out.println("fdsfdsf");
    }
}
